package demo03;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Person {
//    @Autowired
//    private Shirt shirt;
//    @Autowired
//    private Sweater sweater;
    @Autowired
    @Qualifier("summer")
    private Clothes clothes;
    public void  play(){

    //    Shirt shirt = new Shirt();

        clothes.wear();
      //  shirt.wear();
        System.out.println("出去玩爽pwq ----");

    }
    //
}
